//
//  HMMeTableViewController.m
//  HMWeChat
//
//  Created by apple on 2017/5/11.
//  Copyright © 2017年 itheima. All rights reserved.
//

#import "HMMeTableViewController.h"

@interface HMMeTableViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *avartarImgV;
@property (weak, nonatomic) IBOutlet UILabel *nickNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *descLabel;

@end

@implementation HMMeTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];

}

- (void)viewWillAppear:(BOOL)animated{

    [super viewWillAppear:animated];
    //获取当前账号的电子名片
    XMPPvCardTemp *myvCard = [HMXMPPManager sharedManager].xmppvCard.myvCardTemp;
    //设置电子名片信息
    self.nickNameLabel.text = myvCard.nickname;
    self.descLabel.text = myvCard.desc;
    self.avartarImgV.image = [UIImage imageWithData:myvCard.photo];
}


@end
